#ifndef VOUTLINEWIDGET_H
#define VOUTLINEWIDGET_H

#include <QWidget>
#include <QTreeWidget>
#include <QTreeWidgetItem>
namespace Ui {
class VOutlineWidget;
}

class VOutlineWidget : public QTreeWidget
{
    Q_OBJECT

public:
    explicit VOutlineWidget(QWidget *parent = 0);
    ~VOutlineWidget();
    QString _path;
    int _version;
public slots:
    void slot_current_path_changed(QString path);
    void slot_update_outline(QList<QTreeWidgetItem *> list, int version);

signals:
    void signal_outline_requst(QString path, int version);
    void signal_jump(QString path, int line);

private slots:
    void on_treeWidget_doubleClicked(const QModelIndex &index);

private:
    Ui::VOutlineWidget *ui;
    void focusInEvent(QFocusEvent *event);
};

#endif // VOUTLINEWIDGET_H
